package com.apexedu.biz.entity;

import javax.persistence.Basic;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * User: liuxu
 * Date: 13-11-27
 * Time: 下午4:15
 */
@javax.persistence.Table(name = "T_REGULATION_GX")
@Entity
public class TRegulationGx {
    private String wid;
    private String gzwid;
    private String zywid;

    @javax.persistence.Column(name = "WID")
    @Id
    public String getWid() {
        return wid;
    }

    public void setWid(String wid) {
        this.wid = wid;
    }

    @javax.persistence.Column(name = "GZWID")
    @Basic
    public String getGzwid() {
        return gzwid;
    }

    public void setGzwid(String gzwid) {
        this.gzwid = gzwid;
    }

    @javax.persistence.Column(name = "ZYWID")
    @Basic
    public String getZywid() {
        return zywid;
    }

    public void setZywid(String zywid) {
        this.zywid = zywid;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TRegulationGx that = (TRegulationGx) o;

        if (gzwid != null ? !gzwid.equals(that.gzwid) : that.gzwid != null) return false;
        if (wid != null ? !wid.equals(that.wid) : that.wid != null) return false;
        if (zywid != null ? !zywid.equals(that.zywid) : that.zywid != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = wid != null ? wid.hashCode() : 0;
        result = 31 * result + (gzwid != null ? gzwid.hashCode() : 0);
        result = 31 * result + (zywid != null ? zywid.hashCode() : 0);
        return result;
    }
}
